package com.vidyu.businesslayer.businesscomponents.trackingmerger.impl;

import com.vidyu.businesslayer.businesscomponents.trackingmerger.TrackingMerger;
import com.vidyu.datalayer.dataaccesscomponents.MonitorDbHandler;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * fetch all the information required
 */
@Component
public class TrackingMergerImpl implements TrackingMerger {

    private static final Logger logger = Logger.getLogger(TrackingMergerImpl.class);

    @Autowired
    MonitorDbHandler monitorDbHandler;

    public void executeLoop(){
        monitorDbHandler.save(TrackingMergerImpl.class.toString(), TrackingMergerImpl.class.toString(), "Loop");

    }

    public void executeOnce(String testParams){
        monitorDbHandler.save(TrackingMergerImpl.class.toString(), testParams, "Once");
    }

}
